#ifndef ALIPAYDIALOG_H
#define ALIPAYDIALOG_H

#include <QDialog>

namespace Ui {
class AliPayDialog;
}

class AliPayDialog : public QDialog
{
    Q_OBJECT

public:
    explicit AliPayDialog(QWidget *parent = nullptr);
    ~AliPayDialog();
    void onOrderIdReceived(int orderId); //用于接收并保存 orderId

signals:
    void paymentCompleted(int orderId); // 声明 paymentCompleted 信号

private slots:
    void on_pushButton_clicked();

private:
    Ui::AliPayDialog *ui;
    int orderId;
};

#endif // ALIPAYDIALOG_H
